package bean;

public class Collection {
    private int id;/*收藏的id*/
    private String user;/*收藏者id*/
    private int articleId;/*收藏博客*/
    
    public Collection(int articleId){
        
    }
    public Collection(String user,int articleId){
        this.user=user;
        this.articleId=articleId;
    }
    public Collection(int id, String user, int articleId) {
        this.id = id;
        this.user = user;
        this.articleId = articleId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public int getArticleId() {
        return articleId;
    }

    public void setArticleId(int articleId) {
        this.articleId = articleId;
    }

    @Override
    public String toString() {
        return "Collection{" +
                "id=" + id +
                ", user='" + user + '\'' +
                ", articleId=" + articleId +
                '}';
    }
}
